function inputgetName(e) {
  let name = e.detail.currentTarget.dataset.name
  let nameMap = {}
  nameMap[name] = e.detail.detail.value
  this.setData(nameMap)
}

function normalInput(e) {
  console.log(e)
  let name = e.target.dataset.name
  let nameMap = {}
  nameMap[name] = e.detail.value
  this.setData(nameMap)
}

export {
  inputgetName,
  normalInput
}
